﻿namespace Tinter.Common.Logging
{
    /// <summary>
    /// Base contract for Log abstract factory
    /// </summary>
    public interface ILoggerFactory
    {
        /// <summary>
        /// Create a new ILogger
        /// </summary>
        /// <returns>The ILogger created</returns>
        ILogger Create();

        /// <summary>
        /// Create a new ILogger with a source name.
        /// </summary>
        /// <param name="source">The log source name.</param>
        /// <returns>The ILogger created</returns>
        ILogger Create(string source);
    }
}
